#include "abstract-queries.h"

QString AbstractQueries::generateQuery (QList<QStringList> queriesList, int type, int count) const
{
    QStringList queries = queriesList.at(type);
    if (queries.size() == 1)
        return queries.at(0);

    Q_ASSERT(queries.size() == 3);
    QString query = queries.at(0);
    for (int i = 0 ; i < count; i++)
        query.append(queries.at(1));
    query.append(queries.at(2));
    return query;
}
